ip/ffmpeg: fix building for ffmpeg 8.0
authorihy123 <aladinandreyy@gmail.com>
Sun, 24 Aug 2025 16:16:57 +0000 (19:16 +0300)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 12 Sep 2025 21:00:35 +0000 (23:00 +0200)
avcodec_close() can be safely removed because avcodec_free_context()
is its replacement since 2016. See ffmpeg commit 2ef6dab0a79

Builds with v3.3.9 v4.0.6 v6.1.3 v7.1.1 v8.0

Gbp-Pq: Name 0014-ip-ffmpeg-fix-building-for-ffmpeg-8.0.patch

ip/ffmpeg.c

index fc748951f867dccf7b03ecfcaeab6ca513b2a8e0..2cb07671c497236e90a3159d3ffb0a74e07abbc8 100644 (file)
@@ -223,7 +223,6 @@ static int ffmpeg_init_swr_frame(struct ffmpeg_private *priv,
 
 static void ffmpeg_free(struct ffmpeg_private *priv)
 {
-       avcodec_close(priv->codec_ctx);
        avcodec_free_context(&priv->codec_ctx);
        avformat_close_input(&priv->format_ctx);